using System;
using System.Collections.Generic;
using System.Text;

namespace Affirma.CloudFront.AdminTool
{
    [Serializable]
    public class AwsAccount
    {
        bool isSelected = false;
        string id;
        string name;
        string accessKey;
        string secretKey;
        bool useS3Https = true;

        public AwsAccount()
        {
             
        }

        public AwsAccount(string id)
        {
            this.id = new Guid(id).ToString();
        }

        public AwsAccount(string name, string accessKey, string secretKey)
        {
            id = Guid.NewGuid().ToString();
            this.name = name;
            this.accessKey = accessKey;
            this.secretKey = secretKey;
        }

        public override string ToString()
        {
            return this.name;
        }

        public string ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

        public string Name 
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public string AccessKey 
        {
            get { return this.accessKey; } 
            set {this.accessKey = value;}
        }

        public string SecretKey 
        {
            get { return this.secretKey; }
            set { this.secretKey = value; }
        }

        public bool UseS3Https
        {
            get { return this.useS3Https; }
            set { this.useS3Https = value; }
        }

        public bool IsSelected
        {
            get { return this.isSelected; }
            set { this.isSelected = value; }
        }
    }
}
